package com.dfbz.bigdata.modules.system.doman;



import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 
 * @TableName tb_common_computer
 */
@TableName(value ="tb_common_computer")
@Data
public class CommonComputer implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer computerId;

    /**
     * 手机号
     */
    private String computerPhone;

    /**
     * 户型
     */
    private String computerHouse;

    /**
     * 面积
     */
    private String computerArea;

    /**
     * 地区
     */
    private String computerPlace;

    /**
     * 姓名
     */
    private String computerName;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 修改人
     */
    private Long updateUser;

    /**
     * 是否删除
     */
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "CommonComputer{" +
                "computerId=" + computerId +
                ", computerPhone='" + computerPhone + '\'' +
                ", computerHouse='" + computerHouse + '\'' +
                ", computerArea='" + computerArea + '\'' +
                ", computerPlace='" + computerPlace + '\'' +
                ", computerName='" + computerName + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser=" + createUser +
                ", updateUser=" + updateUser +
                ", isDeleted=" + isDeleted +
                '}';
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CommonComputer that = (CommonComputer) o;
        return Objects.equals(computerId, that.computerId) && Objects.equals(computerPhone, that.computerPhone) && Objects.equals(computerHouse, that.computerHouse) && Objects.equals(computerArea, that.computerArea) && Objects.equals(computerPlace, that.computerPlace) && Objects.equals(computerName, that.computerName) && Objects.equals(createTime, that.createTime) && Objects.equals(updateTime, that.updateTime) && Objects.equals(createUser, that.createUser) && Objects.equals(updateUser, that.updateUser) && Objects.equals(isDeleted, that.isDeleted);
    }

    @Override
    public int hashCode() {
        return Objects.hash(computerId, computerPhone, computerHouse, computerArea, computerPlace, computerName, createTime, updateTime, createUser, updateUser, isDeleted);
    }
}